package com.myhome.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.myhome.entity.Admin;
import com.myhome.entity.Menu;
import com.myhome.entity.RespBean;
import org.springframework.security.core.Authentication;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jobob
 * @since 2021-09-04
 */
@Service
public interface IAdminService extends IService<Admin> {

    RespBean login(String username, String password, String captcha, HttpServletRequest request);

    Admin getUserInfo(String name);

    List<Menu> getMenuByUserId();

    List<Admin> getSearchToAdmin(String keywords);

    RespBean updateAdminPassword(Map<String, Object> password, Authentication authentication);
}
